<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加</title> @include("/common/cssAndJs.html"){}
</head>
<body>
	<div class="x-body layui-anim layui-anim-up">
		<div class="layui-container">
			<div class="layui-row">
				<div class="layui-col-md2"></div>
				<div class="layui-col-md8">
					<form action="${ctxPath}/tSystemMenu/tSystemMenuAdd"
						class="layui-form addForm" onsubmit="return false">
						<input type="hidden" name="id" id="id">
						<div class="layui-form-item">
							<label class="layui-form-label"> 上级菜单 </label>
							<div class="layui-input-block">
								<input type="hidden" id="pId" name="pId" value=""> <input
									type="text" id="showNameDom" name="showNameDom"
									placeholder="如果不选择，默认为顶级菜单" autocomplete="off"
									class="layui-input boot-layer"
									boot-url="${ctxPath}/common/showTree?treeUrl=${ctxPath}/tSystemMenu/tSystemMenuList&treeTitle=name&showNameDom=showNameDom&showIdDom=pId"
									boot-width="300" boot-height="400" boot-title="选择上级菜单"
									end="function(){}">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>菜单名称
							</label>
							<div class="layui-input-block">
								<input type="text" id="name" name="name" lay-verify="required"
									placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<!-- <span class="x-red">*</span>将会成为您唯一的登入名   -->
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">菜单图标 </label>
							<div class="layui-input-block">
								<input type="text" id="iconPicker" name="menuIcon" lay-verify=""
									placeholder="请选择菜单图标" autocomplete="off" class="layui-input">
								<!-- 										<button class="layui-btn boot-layer  " boot-title="选择图标" boot-url="${ctxPath}/common/iconPicker"  >
														<i class="layui-icon"></i>选择图标
											</button> -->
							</div>
							<div class="layui-form-mid layui-word-aux">
								<!-- <span class="x-red">*</span>将会成为您唯一的登入名   -->
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>请求url
							</label>
							<div class="layui-input-block">
								<input type="text" id="reqUrl" name="reqUrl"
									lay-verify="required" placeholder="请输入请求url" autocomplete="off"
									class="layui-input">
							</div>

						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>类型
							</label>
							<div class="layui-input-block">
								<select id="menuType" name="menuType" v="" lay-verify="required">
									<option value="">请选择菜单类型</option>
									<option value="0">菜单</option>
									<option value="1">按钮</option>
								</select>
							</div>

						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>控制类型
							</label>
							<div class="layui-input-block">
								<select id="type" name="type" v="" lay-verify="required">
									<option value="">请选择控制类型</option>
									<option value="0">无需登录</option>
									<option value="1">需要登录无需权限</option>
									<option value="2">需要登录需要权限</option>
								</select>
							</div>

						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> 排序</label>
							<div class="layui-input-block">
								<input type="number" id="orderNum" name="orderNum" lay-verify=""
									placeholder="纯数字,数值越大越靠前"  autocomplete="off"
									class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> 备注 </label>
							<div class="layui-input-block">
								<input type="text" id="tips" name="tips" lay-verify="maxlengths"
									maxlengths="1000" placeholder="请输入备注" autocomplete="off"
									class="layui-input">
							</div>

						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> </label>
							<button class="layui-btn" lay-filter="boot-form-btn"
								lay-submit="">增加</button>
						</div>
					</form>
				</div>
				<div class="layui-col-md2"></div>
			</div>
		</div>
	</div>
	<script
		src="${ctxPath}/static/js/view/system/tSystemMenu/tSystemMenu.js"></script>
</body>
</html>